9f4df34ea127cb206450c547a088f60c86fbb20d,mycollab-web/src/main/java/com/mycollab/module/crm/view/opportunity/OpportunitySearchPanel.java,OpportunitySearchPanel,buildExtraControls,#,70
Before Change
return new MButton(UserUIContext.getMessage(OpportunityI18nEnum.NEW),
clickEvent -> EventBusFactory.getInstance().post(new OpportunityEvent.GotoAdd(OpportunitySearchPanel.this, null)))
.withIcon(FontAwesome.PLUS).withStyleName(WebUIConstants.BUTTON_ACTION)
.withVisible(UserUIContext.canWrite(RolePermissionCollections.CRM_OPPORTUNITY));
}
@Override
After Change
@Override
protected Component buildExtraControls() {
return (canCreateOpportunity) ? new MButton(UserUIContext.getMessage(OpportunityI18nEnum.NEW),
clickEvent -> EventBusFactory.getInstance().post(new OpportunityEvent.GotoAdd(OpportunitySearchPanel.this, null)))
.withIcon(FontAwesome.PLUS).withStyleName(WebUIConstants.BUTTON_ACTION)
.withVisible(UserUIContext.canWrite(RolePermissionCollections.CRM_OPPORTUNITY)) : null;
}
@Override